#include "threadsendgps.h"

ThSendGps::ThSendGps()
{

}
void ThSendGps::run()
{


    if(address.isNull())//错误警告
    {
        QString e="ip is null please check!!！\n";
        emit error(e);
    }
}

void ThSendGps::clienterror(const QString)
{

}

void ThSendGps::SendGps(QString gps)
{
    QByteArray tmp(gps.toUtf8());
    DataReceived = tmp;
    if (!isRunning())
            start();
}

void ThSendGps::SetIp(QString ip)
{
    address.setAddress(ip);
}
void ThSendGps::SetPort(int pt)
{

    port = pt;
}


